#coding=utf-8
import time
import unittest
from public.common import pyselenium
from config import globalparam
from public.common.log import Log


class MyTest(unittest.TestCase):
    """
    The base class is for all testcase.
    """
    @classmethod
    def setUpClass(cls):
        cls.logger = Log()
        cls.logger.info('############################### START ###############################')
        cls.dr = pyselenium.PySelenium(globalparam.browser)
        cls.dr.max_window()

    @classmethod
    def tearDownClass(cls):
        time.sleep(0.5)
        cls.dr.quit()
        cls.logger.info('###############################  End  ###############################')
